package com.bzframework.ai.springai.config;

import com.alibaba.cloud.ai.dashscope.api.DashScopeApi;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author bingzhong
 * @Date 2025/10/26
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "spring.ai.dashscope")
public class SpringAiConfiguration {

    private String apiKey;


    @Bean
    public DashScopeApi dashScopeApi() {
        return DashScopeApi.builder().apiKey(apiKey).build();
    }


}
